<?php
    if (!session_start())
        session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Administrator</title>
    <link rel="shortcut icon" href="/formulaonekitchens/misc/favicon.ico" type="image/x-icon" />
    <link type="text/css" rel="stylesheet" href="../css/admin.css" />
    
    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
    
    <script type="text/javascript" src="../js/swfupload.js"></script>
    <script type="text/javascript" src="../js/jquery.swfupload.js"></script>
    

	<style>
	label.error{
		color: #dc5a25;
		padding:5px 0px 5px 5px;
		font-weight: lighter;
	}
</style>
  </head>
  <body class="sidebar-left">

    <!-- Layout -->
    <div id="header-region" class="clear-block"></div>

    <div id="wrapper">
        <div id="container" class="clear-block">

            <div id="header">
                <div id="logo-floater">
                    <h1>
                        <a title="Formula One Kitchen">
                            <img src="../images/logo.png" alt="Formula One Kitchen" id="logo" />
                            <span>Formula One Kitchen</span>
                        </a>
                    </h1>
                </div>
            </div> <!-- /header -->

            <?php
                include 'admin_siderbar_left.php';
            ?>


            <div id="center">
                <div id="squeeze">
                    <div class="right-corner">
                        <div class="left-corner">
                            <div class="breadcrumb">
                                <a>Admin</a> ›
                                <a>
                                    <?php
                                    if(isset($_GET['action'])){
                                        $action = $_GET['action'];
                                            if($action == 'up')
                                                echo 'Edit project';
                                            else if($action == 'ip')
                                                echo 'Create new project';
                                            else if($action == 'mp')
                                                echo 'Manage project';
                                            else if($action == 'mg')
                                                echo 'Manage gallery';
                                            else if($action == 'ig')
                                                echo 'Upload gallery';
                                            else if($action == 'mu')
                                                echo 'Manage Your Account';
                                    }
                                    else
                                        echo 'Login';
                                    ?>
                                </a>
                            </div>
                                 <?php
                                    if(isset($_GET['action']) && isset($_SESSION['login'])){
                                        $action = $_GET['action'];
                                            if($action == 'up')
                                                include 'admin_edit_project.php';
                                            else if($action == 'ip')
                                                include 'admin_add_project.php';
                                            else if($action == 'mp')
                                                include 'admin_manage_project.php';
                                            else if($action == 'mg')
                                                include 'admin_manage_gallery.php';
                                            else if($action == 'ig')
                                                include 'admin_add_gallery.php';
                                            else
                                                include 'login.php';
                                    }
                                    else
                                        include 'login.php';
                                    ?>
                            <div id="footer">
                                <div id="block-system-0" class="clear-block block block-system"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->


        </div> <!-- /container -->

       </div>
<!-- /layout -->

   </body>
    <script type="text/javascript" src="../js/jquery.validate.js" ></script>
    <script type="text/javascript" src="../js/validate_admin.js"></script>
</html>
